<template>
  <ul class="tabs tabs-a grid-x" data-tabs id="tabs1">
    <li class="tabs-title is-active small-3" ref="tabs1">
      <a href="#par1">{{title}}</a>
    </li>
    <slot name="right"></slot>
  </ul>
</template>

<script>
  export default {
    name: "HeadTitle",
    props: {
      title: String
    },
    mounted() {
      if(this.$route.path=='/budget'){
        this.$refs.tabs1.style.marginLeft = '10px';
      }
    }
  }
</script>

<style scoped>
  .tabs-a {
    height: 45px;
    width: 100%;
    background: #fff;
    position: fixed;
    top: 60px;
    left: 0px;
    box-shadow: 0px 2px 3px #ddd;
    z-index: 1000;
  }

  .tabs-title a {
    color: #930007;
    position: relative;
    background: #fff;
  }

  .tabs-title a:before {
    content: "";
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #930007;
    position: absolute;
    bottom: 2px;
  }
</style>
